<?php
/**
 * Created by PhpStorm.
 * User: ZZF
 * Date: 2017/3/16
 * Time: 11:36
 */

namespace app\admin\model;
use think\Model;
use think\Verify;
class ContractModel extends Model{
	protected $validate = [
         'rule' => [
			 'contract_no' => "require|unique:contract|length:20,32"
		 ],
         'msg'  => [
			 'contract_no.require' => "合同编号必须填写！",
			 'contract_no.length' => "合同编号长度必须不少于20且不超过32"
		 ]
    ];
}
